import api from '@/config/api'
import { http } from '@/utils/request'

// 获取导航设置
export function getSmNavigateSettingList() {
  return http.request({
    url: `/small/navigate/selectSmNavigateSettingList`,
    method: 'GET'
  })
}
// 获取首页装修数据
export function getFloorDataNew() {
  return http.request({
    url: `/small/decoration/selectSmDecoration`,
    method: 'GET'
  })
}

// 获取图文功能装修
export function getPageDataByCode(functionCode: string) {
  return http.request({
    url: `/small/decoration/getPageDataByCode/${functionCode}`,
    method: 'GET'
  })
}

// 根据分类id获取文章列表
export function getArticleListByClassifyId(query: any) {
  return http.request({
    url: `/small/decoration/content/page/${query.classifyId}`,
    method: 'GET',
    params: query
  })
}

// 根据文章id获取文章详情
export function getArticleDetail(contentId: any) {
  return http.request({
    url: `/small/decoration/contentById/${contentId}`,
    method: 'GET'
  })
}
